package com.jindianjichi.auth.appliccation.entity;

import lombok.Data;

/**
 * 分页请求实体
 */
@Data
public class PageInfo {
    private Integer pageNo=1;
    private Integer pageSize=20;

    public Integer getPageNo() {
        if (pageNo <= 0 || pageNo == null) {
            return 1;
        }
        return pageNo;
    }
    public Integer getPageSize() {
        if (pageSize <= 0 || pageSize == null) {
            return 20;
        }
        return pageSize;
    }
}
